package com.whp.openapi.service;

import com.whp.openapi.common.ResponseResult;
import com.whp.openapi.common.ResultTable;
import com.whp.openapi.entity.Role;

import java.util.List;

/**
 * @author whp
 * @date 2021/11/24
 */
public interface RoleService {

    ResultTable getRolePageWithName(Integer page, Integer limit, String name);

    ResponseResult updateStatus(Integer id, Integer status);

    List<Integer> getRoleMenu(Integer roleId);

    ResponseResult assignMenu(Integer roleId, Integer[] menuIds);

    ResponseResult addRole(Role role);

    ResponseResult updateRole(Role role);
}
